﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkflowNew.aspx.cs" Inherits="AspWebTest.WorkflowInsCreate" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:Button ID="Button_OK" runat="server" Text="確定" onclick="Button_OK_Click" />
        <input type="button" onclick="javascript:window.history.go(-1);"value="返回">
    
        <br />
        <br />
        工作流名稱:
        <asp:TextBox ID="TextBox_name" runat="server"></asp:TextBox>
        <br />
        工作流分類:
        <asp:DropDownList ID="DropDownList_type" runat="server" 
            DataSourceID="SqlDataSource_wftype" DataTextField="wftype_name" 
            DataValueField="wftype_id">
            <asp:ListItem></asp:ListItem>
            <asp:ListItem></asp:ListItem>
        </asp:DropDownList>
        <asp:SqlDataSource ID="SqlDataSource_wftype" runat="server" 
            ConnectionString="<%$ ConnectionStrings:OAonlineConnectionString %>" 
            SelectCommand="SELECT [wftype_id], [wftype_name] FROM [wf_wftype]">
        </asp:SqlDataSource>
        <br />
        順序:
        <asp:TextBox ID="TextBox_pos" runat="server"></asp:TextBox>
        <br />
        流程模版:
        <asp:ListBox ID="ListBox_wftemplate" runat="server" 
            DataSourceID="SqlDataSource_wftemplate" DataTextField="wftemplate_name" 
            DataValueField="wftemplate_id"></asp:ListBox>
        <asp:SqlDataSource ID="SqlDataSource_wftemplate" runat="server" 
            ConnectionString="<%$ ConnectionStrings:OAonlineConnectionString %>" 
            SelectCommand="SELECT [wftemplate_id], [wftemplate_name] FROM [wf_template]">
        </asp:SqlDataSource>
        <br />
        表單模板: 
        <asp:ListBox ID="ListBox_formtemplate" runat="server" DataTextField="name" 
            DataValueField="form_id" DataSourceID="SqlDataSource_wfform"></asp:ListBox>
        <asp:SqlDataSource ID="SqlDataSource_wfform" runat="server" 
            ConnectionString="<%$ ConnectionStrings:OAonlineConnectionString %>" 
            SelectCommand="SELECT [form_id], [name] FROM [wf_form]"></asp:SqlDataSource>
        <br />
        描述:<asp:TextBox ID="TextBox_descn" runat="server" Height="22px" Width="660px"></asp:TextBox>
        <br />
    
    </div>
    </form>
</body>
</html>
